home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c-part2 / 13706 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  920 b 

  1. Path: solon.com!not-for-mail
  2. From: seebs@solutions.solon.com (Peter Seebach)
  3. Newsgroups: comp.lang.c
  4. Subject: Re: reversing a string
  5. Date: 9 Apr 1996 17:43:26 -0500
  6. Organization: Usenet Fact Police (Undercover)
  7. Message-ID: <4kep6e$8hq@solutions.solon.com>
  8. References: <4k6cjl$j8f@central.server.swt.edu> <4k6jks$fh9@solutions.solon.com> <DpLtt5.Lqu@iquest.net>
  9. Reply-To: seebs@solon.com
  10. NNTP-Posting-Host: solutions.solon.com
  11.  
  12. In article <DpLtt5.Lqu@iquest.net>, Doug Miller <dlmiller@iquest.net> wrote:
  13. >void swap (char *s) {
  14. >    if (strlen(s) > 1) {
  15.  
  16. I was avoiding strlen, because I think it counts as either a loop or a
  17. temporary variable.
  18.  
  19. -s
  20. -- 
  21. Peter Seebach - seebs@solon.com - Copyright 1996 Peter Seebach.
  22. C/Unix wizard -- C/Unix questions? Send mail for help.  No, really!
  23. FUCK the communications decency act.  Goddamned government.  [literally.]
  24. The *other* C FAQ - http://www.solon.com/~seebs/c/c-iaq.html
  25.